define(function (require, exports, module) {

    Vue.use(VueRouter)

    //创建一个路由器实例
    var router = new VueRouter({
        routes: [{
            path: '/',
            component: function (resolve) {
                require.async(['./src/com_test/table/index.js'], resolve);
            }
        }, {
            path: '/table',
            component: function (resolve) {
                require.async(['./src/com_test/table/index.js'], resolve);
            }
        }, {
            path: '/table2',
            component: function (resolve) {
                require.async(['./src/com_test/table2/index.js'], resolve);
            }
        }, {
            path: '/update/:userId',
            component: function (resolve) {
                require.async(['./src/com_test/update/index.js'], resolve);
            }
        }]
    });


    var app = new Vue({
        router: router

    }).$mount('#app')


});